package com.itheima.pool.service;

import com.itheima.pool.domain.Student;

import java.sql.SQLException;
import java.util.ArrayList;

public interface StudentService{
    //查询所有的学生
    ArrayList<Student> findAll() throws SQLException;
    //查询指定id的学生信息
    Student findById(Integer id) throws SQLException;
    //新增学生信息
    int insert(Student student) throws SQLException;
    //修改学生信息
    int update(Student student) throws SQLException;
    //删除指定id的学生
    int delete(Integer id) throws SQLException;
}
